/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cl.mechon.buchef.engine.component;

import org.newdawn.slick.GameContainer;
import org.newdawn.slick.state.StateBasedGame;
 
import cl.mechon.buchef.engine.Entity;
 
public abstract class Component {
 
    protected String id;
    protected Entity owner;

    public Component(String id, Entity owner) {
        this.id = id;
        this.owner = owner;
    }
  
    public String getId()
    {
        return id;
    }
 
    public void setOwnerEntity(Entity owner)
    {
    	this.owner = owner;
    }
 
    public abstract void update(GameContainer gc, StateBasedGame sb, int delta);
}